<?xml version="1.0" ?>
<xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >

  <xsl:variable name="DistanceUnit" select="weather/head/ud" />
  <xsl:variable name="TemperatureUnit" select="weather/head/ut" />
  <xsl:variable name="SpeedUnit" select="weather/head/us" />
  <xsl:variable name="PreasureUnit" select="weather/head/up" />
  <xsl:variable name="RainFallUnit" select="weather/head/ur" />

  <xsl:template match="head">
    <!--Locale: <xsl:value-of select="locale" /> <br />-->
    <!--Form: <xsl:value-of select="form" /> <br />-->
  </xsl:template>

  <xsl:template match="loc">
    Location: <xsl:value-of select="dnam" /> <br />
    Weather condition retrieved at: <xsl:value-of select="tm" /> <br />
    Sunrise: <xsl:value-of select="sunr" /> <br />
    Sunset: <xsl:value-of select="suns" /> <br />

    <!--Zone <xsl:value-of select="zone" /> <br />-->
    <!--Location Id : <xsl:value-of select="@id" /> <br />-->
  </xsl:template>

  <xsl:template match="wind">
    From <xsl:value-of select="t" /> at  <xsl:value-of select="s" /> <xsl:copy-of select="$SpeedUnit" /> <br />
    <!--WindGust <xsl:value-of select="gust" /> <br />-->
    <!--DirectionWindIsBlowing <xsl:value-of select="d" /> <br />-->
  </xsl:template>

  <xsl:template match="lnks">
    <b>Promo links</b> <br />
    <ol>
    <xsl:for-each select="link">
      <xsl:sort select="pos"/>
      <li>
      <xsl:element name="a">
        <xsl:attribute name="href">
          <xsl:value-of select="l" />
        </xsl:attribute>
        <xsl:value-of select="t" />
    </xsl:element>
      </li>
    </xsl:for-each>
    </ol>
  </xsl:template>

  <xsl:template match="icon">
    <xsl:element name="img">
      <xsl:attribute name="src">
        C:\Temp\sdk\icons\93x93\<xsl:value-of select="." />.png
      </xsl:attribute>
    </xsl:element>
  </xsl:template>

</xsl:stylesheet>
